package com.niit.mall.cart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.niit.mall.cart.domain.dto.CartFormDTO;
import com.niit.mall.cart.domain.po.Cart;
import com.niit.mall.cart.domain.vo.CartVO;

import java.util.Collection;
import java.util.List;


/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author ChuXuan
 * @since 2025-05-26
 */
public interface ICartService extends IService<Cart> {
	
	List<CartVO> queryMyCarts();

	Cart addCartItem(CartFormDTO cartFormDTO);
	
	void removeByItemIds(Collection<Long> itemIds);

    void reduceStock( Long productId, Integer quantity);
}
